﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Consumable : Item
{
    public int Hp { get; set; }
    public int Mp { get; set; }
    /// <summary>
    /// 消耗品
    /// </summary>
    /// <param name="id"></param>
    /// <param name="name"></param>
    /// <param name="item"></param>
    /// <param name="description"></param>
    /// <param name="quality"></param>
    /// <param name="Sprite"></param>
    /// <param name="Hp"></param>
    /// <param name="Mp"></param>
    public Consumable(int id, string name, ItemData.ItemType item, string description, ItemData.QualityType quality, string Sprite, int Hp, int Mp) : base(id, name, item, quality, description, Sprite)
    {
        this.Hp = Hp;
        this.Mp = Mp;
    }
    /// <summary>
    /// 拷贝构造函数
    /// </summary>
    /// <param name="consumble"></param>
    public Consumable(Item item, int Hp, int Mp) : base(item)
    {
        this.Hp = Hp;
        this.Mp = Mp;
    }
}
